package com.hxit.servics.impl;

import com.hxit.mapper.ConversationsMapper;
import com.hxit.pojo.Conversation;
import com.hxit.servics.ConversationsService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ConversationImpl implements ConversationsService {
    @Autowired
    private ConversationsMapper conversationMapper;

    @Override
    public void AddConversations(Conversation conversation) {
        conversationMapper.AddConversations(conversation);
    }

    @Override
    public void DeleteConversationsById(@Param("ids") List<Integer> ids) {
        conversationMapper.DeleteConversationsById(ids);
    }


    @Override
    public Conversation FindConversationById(Integer id) {
        Conversation conversation = conversationMapper.FindConversationById(id);
        return conversation;
    }

    @Override
    public void UpdateConversations(Conversation conversation) {
        conversationMapper.UpdateConversations(conversation);
    }
}

